﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.DataAdapter;

namespace Sealight.Core.Domain
{
   public class RoleEntity
    {
       public virtual Guid RoleID { get; set; }

       public virtual string RoleName { get; set; }
       public virtual IList<UserEntity> Users { get; set; }

       public virtual role ToDataAdapter()
       {
           role data = new role
           {
               id = this.RoleID,
               role_name = this.RoleName
           };

           return data;
       }
    }
}
